import Vue from 'vue'
import Router from 'vue-router'
import Add from '@/components/Add'
import Edit from '@/components/Edit'
import index from '@/components/Index'
// import Data from '@/components/Data'

Vue.use(Router)

export default new Router({
  routes: [

    {
      path: '/',
      name: 'index',
      component: index
    },
    // {
    //   path: '/',
    //   name: 'Data',
    //   component: Data
    // },
    {
      path: '/add',
      name: 'Add',
      component: Add
    },
    {
      path: '/edit',
      name: ' Edit',
      component: Edit
    }
  ]
})
